using System;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;

namespace StudentManagementApplication.Business
{
    public class RollcallService 
    {
        private DAO.RollcallDAO rollcallDAO = new DAO.RollcallDAO();

        public void InsertRollcall(Entities.Rollcall rollcall)
        {
            rollcallDAO.InsertRollcall(rollcall);
        }

        public void UpdateRollcall(Entities.Rollcall rollcall)
        {
            rollcallDAO.UpdateRollcall(rollcall);
        }

        public void DeleteRollcall(Entities.Rollcall rollcall)
        {
            rollcallDAO.DeleteRollcall(rollcall);
        }

        public void DeleteRollcallByStudentID(string sStudentID)
        {
            rollcallDAO.DeleteRollcallByStudentID(sStudentID);
        }

        public Entities.Rollcall GetRollcallByStudentIDAndRollcallDay(string sStudentID, DateTime dRollcallDay)
        {
            return rollcallDAO.GetRollcallByStudentIDAndRollcallDay(sStudentID, dRollcallDay);
        }
        public List<Entities.Rollcall> GetRollcallByStudentID1(string sStudentID)
        {
            return rollcallDAO.GetRollcallByStudentID1(sStudentID);
        }

        public List<Entities.Rollcall> GetAllRollcalls()
        {
            return rollcallDAO.GetAllRollcalls();
        }

        public DataTable GetRollcallByStudentID(string sStudentID)
        {
            return rollcallDAO.GetRollcallByStudentID(sStudentID);
        }
        public DataTable GetRollcallsByRollcallDay(DateTime dRollcallDay)
        {
            return rollcallDAO.GetRollcallsByRollcallDay(dRollcallDay);
        }
        public DataTable GetRollcallsByCourseID(string sCourseID)
        {
            return rollcallDAO.GetRollcallsByCourseID(sCourseID);
        }
        public DataTable GetRollcallsByClassID(string sClassID)
        {
            return rollcallDAO.GetRollcallsByClassID(sClassID);
        }
    }
}
